package com.j2eefast.bussiness.contract.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.j2eefast.bussiness.contract.entity.BusEquipmentEntity;
import com.j2eefast.bussiness.contract.entity.BusInstallsEntity;
import com.j2eefast.bussiness.contract.entity.BusMeteringUnitEntity;
import com.j2eefast.framework.sys.entity.SysUserEntity;
import org.apache.ibatis.annotations.Param;

/**
 * <p>计量单位设置</p>
 *
 * @author: summer
 * @date: 2021-06-01 10:41
 * @web: http://www.letukeji.cn
 * @version: 1.0.1
 */
public interface BusMeteringUnitMapper extends BaseMapper<BusMeteringUnitEntity> {



    public boolean deleteByIds(@Param("ids") Long[] ids);
    public boolean updateCheck(@Param("id") Long id, @Param("userId") Long userId);
    //查询用户信息
    public SysUserEntity getSysById(@Param("userId") Long userId);

    /**
     * 页面查询流程实例分页
     * @return
     */
    Page<BusMeteringUnitEntity> findPage(IPage<?> params,
//                                         @Param("sample_code") String sampleCode,
//                                         @Param("sample_type") String sampleType,
                                      @Param("sql_filter") String sql_filter);

}
